package com.shenmazong.servereduresume.controller;

import com.shenmazong.servereduresume.dto.TbUserSrwp;
import com.shenmazong.servereduresume.service.TbUserSrwpService;
import com.shenmazong.utils.ResultResponse;
import com.shenmazong.vo.BatchChooseIdVo;
import com.shenmazong.vo.ListParamVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 简历收藏表
 */
@RestController
@RequestMapping("userSrwp")
public class TbUserSrwpController {
    @Autowired
    private TbUserSrwpService tbUserSrwpService;

    @PostMapping("getMySrwp")
    public ResultResponse getMySrwp(@RequestBody ListParamVo listParamVo){
        return tbUserSrwpService.getMySrwp(listParamVo);
    }

    @PostMapping("saveMySrwp")
    public ResultResponse saveMySrwp(@RequestBody TbUserSrwp userSrwp){
        return tbUserSrwpService.saveMySrwp(userSrwp);
    }

    @PostMapping("deleteMySrwp")
    public ResultResponse deleteMySrwp(@RequestBody BatchChooseIdVo batchChooseIdVo){
        return tbUserSrwpService.deleteMySrwp(batchChooseIdVo);
    }
}
